<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
	<title>资讯管理</title>
	<link th:replace="~{common::common_head}">
</head>

<body class="">
<div class="wrapper ">
	<div th:insert="~{common::sidebar(active='news_list.html')}"></div>
	<div class="main-panel">
		<!-- Navbar导航栏 -->
		<nav th:replace="~{common::navbar}"></nav>
		<!--搜索栏-->
		<div class="panel-header">
			<form id="search_form" th:action="@{/patient/search}">
				<div class="header text-center">
					<h2 class="title">资讯管理</h2>
				</div>
			</form>
		</div>
		<div class="content">
			<div class="row">
				<div class="col-md-12">
					<div class="card">
						<div class="card-header">
							<h4 class="card-title">资讯管理</h4>
						</div>
						<div class="card-body">
							<div class="table-responsive">
								<table class="table">
									<thead class="text-primary">
									<th>
										资讯ID
									</th>
									<th>
										资讯标题
									</th>
									<th>
										资讯信息
									</th>
									<th>
										创建时间
									</th>
									<th>
										更新时间
									</th>
									<th>操作</th>
									</thead>
									<tbody>

									<tr th:each="newinfo:${news}">
										<td th:text="${newinfo.getNewsId()}"></td>
										<td th:text="${newinfo.getNewsTitle()}"></td>
										<td th:text="${newinfo.getNewsInfo()}"></td>
										<td th:text="${#dates.format(newinfo.getCreateTime(),'yyyy-MM-dd HH:mm:ss')}"></td>
										<td th:text="${#dates.format(newinfo.getUpdateTime(),'yyyy-MM-dd HH:mm:ss')}"></td>
										<td>
											<a class="btn btn-sm btn-success text-white">详情</a>
											<a class="btn btn-sm btn-danger text-white" th:href="@{/admin/news/delete/}+${newinfo.getNewsId()}">删除</a>
										</td>
									</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--底部footer-->
		<footer th:replace="~{common::footer}"></footer>
	</div>
</div>
</body>

<!--通用footerJs-->
<script th:replace="~{common::footerJs}"></script>

</html>
